using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using Sirenix.Serialization.Editor;
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities.Editor;
using Sirenix.Utilities;

public class Toolpanels : OdinMenuEditorWindow
{
    [MenuItem("Tools/My OdinTools")]
    private static void OpenWindow()
    {
        var window=GetWindow<Toolpanels>();
        window.position = GUIHelper.GetEditorWindowRect().AlignCenter(800, 600);
    }

    protected override OdinMenuTree BuildMenuTree()
    {
        
            OdinMenuTree tree = new OdinMenuTree(supportsMultiSelect: false)
            {
                {"Test Odin",TestOdinTools.Instance,EditorIcons.Airplane }
            };

            tree.SortMenuItemsByName();



        return tree;
    }
}
